package com.ruoyi.pingan.fymodule.account.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 平安子账号用户
 * </p>
 *
 * @author wangy
 * @since 2025-06-11
 */
@Data
@TableName("sxo_safety_user")
@Schema(name = "SxoSafetyUser对象", description = "平安子账号用户")
public class SxoSafetyUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private String userId;

    @Schema(description = "子账户账号")
    @TableField("sub_acct_no")
    private String subAcctNo;

    @Schema(description = "子账户用户名")
    @TableField("sub_acct_name")
    private String subAcctName;

    @Schema(description = "平安会员代码")
    @TableField("tran_net_member_code")
    private String tranNetMemberCode;

    @Schema(description = "数据表来源 批发商user，商家shop")
    @TableField("source")
    private String source;

    @Schema(description = "状态（0正常, 1删除）")
    @TableField("status")
    private Integer status;

    @Schema(description = "登记状态 -1登记失败； 0:未登记；1登记成功2销户")
    @TableField("rein_status")
    private Integer reinStatus;

    @Schema(description = "会员名称")
    @TableField("member_name")
    private String memberName;

    @Schema(description = "子账户类型(SH:商户;00:普通)")
    @TableField("member_property")
    private String memberProperty;

    @Schema(description = "会员证件类型")
    @TableField("member_global_type")
    private String memberGlobalType;

    @Schema(description = "会员证件号码")
    @TableField("member_global_id")
    private String memberGlobalId;


    @Schema(description = "手机号码")
    @TableField("mobile")
    private String mobile;

    @Schema(description = "个体工商户标志(1：是 2：否)")
    @TableField("indiv_business_flag")
    private String indivBusinessFlag;

    @Schema(description = "公司名称")
    @TableField("company_name")
    private String companyName;

    @Schema(description = "公司证件类型")
    @TableField("company_global_type")
    private String companyGlobalType;

    @Schema(description = "公司证件号码")
    @TableField("company_global_id")
    private String companyGlobalId;

    @Schema(description = "店铺id")
    @TableField("shop_id")
    private String shopId;

    @Schema(description = "店铺名称")
    @TableField("shop_name")
    private String shopName;

    @Schema(description = "会员名称是否是法人(1-是  2-否)")
    @TableField("rep_flag")
    private String repFlag;

    @Schema(description = "法人名称")
    @TableField("repr_name")
    private String reprName;

    @Schema(description = "法人证件类型")
    @TableField("repr_global_type")
    private String reprGlobalType;

    @Schema(description = "法人证件号码")
    @TableField("repr_global_id")
    private String reprGlobalId;

//    @Schema(description = "销户时间")
//    @TableField("cancellation_time")
//    private String cancellationTime;

    @Schema(description = "成功流水号")
    @TableField("cnsmr_seq_no")
    private String CnsmrSeqNo;

    @Schema(description = "添加时间")
    @TableField("add_time")
    private String addTime;

    @Schema(description = "更新时间")
    @TableField("upd_time")
    private String updTime;

    @Schema(description = "余额")
    @TableField("balance")
    private String balance;

    @Schema(description = "冻结余额")
    @TableField("freeze_balance")
    private String freezeBalance;
}
